import request from '../utils/request'

let baseUrl = "/api/user";
export default {
    get(UId) {
        return request({ url: `${baseUrl}/?UId=${UId}` });
    },
    post(phone, UId) {
        return request({ url: `${baseUrl}/authCode?UId=${UId}`, data: { phone }, method: 'post' });
    },
    login(userName) {
        return request({ url: `${baseUrl}/login`, params: { userName }, method: 'post' });
    },
    getUserList() {
        return request({ url: `${baseUrl}/userList` });
    },
}